#define ONFRONTCONNECTED 0
#define ONFRONTDISCONNECTED 1
#define ONHEARTBEATWARNING 2
#define ONRSPAUTHENTICATE 3
#define ONRSPUSERLOGIN 4
#define ONRSPUSERLOGOUT 5
#define ONRSPUSERPASSWORDUPDATE 6
#define ONRSPTRADINGACCOUNTPASSWORDUPDATE 7
#define ONRSPORDERINSERT 8
#define ONRSPPARKEDORDERINSERT 9
#define ONRSPPARKEDORDERACTION 10
#define ONRSPORDERACTION 11
#define ONRSPQUERYMAXORDERVOLUME 12
#define ONRSPSETTLEMENTINFOCONFIRM 13
#define ONRSPREMOVEPARKEDORDER 14
#define ONRSPREMOVEPARKEDORDERACTION 15
#define ONRSPEXECORDERINSERT 16
#define ONRSPEXECORDERACTION 17
#define ONRSPFORQUOTEINSERT 18
#define ONRSPQUOTEINSERT 19
#define ONRSPQUOTEACTION 20
#define ONRSPBATCHORDERACTION 21
#define ONRSPCOMBACTIONINSERT 22
#define ONRSPQRYORDER 23
#define ONRSPQRYTRADE 24
#define ONRSPQRYINVESTORPOSITION 25
#define ONRSPQRYTRADINGACCOUNT 26
#define ONRSPQRYINVESTOR 27
#define ONRSPQRYTRADINGCODE 28
#define ONRSPQRYINSTRUMENTMARGINRATE 29
#define ONRSPQRYINSTRUMENTCOMMISSIONRATE 30
#define ONRSPQRYEXCHANGE 31
#define ONRSPQRYPRODUCT 32
#define ONRSPQRYINSTRUMENT 33
#define ONRSPQRYDEPTHMARKETDATA 34
#define ONRSPQRYSETTLEMENTINFO 35
#define ONRSPQRYTRANSFERBANK 36
#define ONRSPQRYINVESTORPOSITIONDETAIL 37
#define ONRSPQRYNOTICE 38
#define ONRSPQRYSETTLEMENTINFOCONFIRM 39
#define ONRSPQRYINVESTORPOSITIONCOMBINEDETAIL 40
#define ONRSPQRYCFMMCTRADINGACCOUNTKEY 41
#define ONRSPQRYEWARRANTOFFSET 42
#define ONRSPQRYINVESTORPRODUCTGROUPMARGIN 43
#define ONRSPQRYEXCHANGEMARGINRATE 44
#define ONRSPQRYEXCHANGEMARGINRATEADJUST 45
#define ONRSPQRYEXCHANGERATE 46
#define ONRSPQRYSECAGENTACIDMAP 47
#define ONRSPQRYPRODUCTEXCHRATE 48
#define ONRSPQRYPRODUCTGROUP 49
#define ONRSPQRYOPTIONINSTRTRADECOST 50
#define ONRSPQRYOPTIONINSTRCOMMRATE 51
#define ONRSPQRYEXECORDER 52
#define ONRSPQRYFORQUOTE 53
#define ONRSPQRYQUOTE 54
#define ONRSPQRYCOMBINSTRUMENTGUARD 55
#define ONRSPQRYCOMBACTION 56
#define ONRSPQRYTRANSFERSERIAL 57
#define ONRSPQRYACCOUNTREGISTER 58
#define ONRSPERROR 59
#define ONRTNORDER 60
#define ONRTNTRADE 61
#define ONERRRTNORDERINSERT 62
#define ONERRRTNORDERACTION 63
#define ONRTNINSTRUMENTSTATUS 64
#define ONRTNTRADINGNOTICE 65
#define ONRTNERRORCONDITIONALORDER 66
#define ONRTNEXECORDER 67
#define ONERRRTNEXECORDERINSERT 68
#define ONERRRTNEXECORDERACTION 69
#define ONERRRTNFORQUOTEINSERT 70
#define ONRTNQUOTE 71
#define ONERRRTNQUOTEINSERT 72
#define ONERRRTNQUOTEACTION 73
#define ONRTNFORQUOTERSP 74
#define ONRTNCFMMCTRADINGACCOUNTTOKEN 75
#define ONERRRTNBATCHORDERACTION 76
#define ONRTNCOMBACTION 77
#define ONERRRTNCOMBACTIONINSERT 78
#define ONRSPQRYCONTRACTBANK 79
#define ONRSPQRYPARKEDORDER 80
#define ONRSPQRYPARKEDORDERACTION 81
#define ONRSPQRYTRADINGNOTICE 82
#define ONRSPQRYBROKERTRADINGPARAMS 83
#define ONRSPQRYBROKERTRADINGALGOS 84
#define ONRSPQUERYCFMMCTRADINGACCOUNTTOKEN 85
#define ONRTNFROMBANKTOFUTUREBYBANK 86
#define ONRTNFROMFUTURETOBANKBYBANK 87
#define ONRTNREPEALFROMBANKTOFUTUREBYBANK 88
#define ONRTNREPEALFROMFUTURETOBANKBYBANK 89
#define ONRTNFROMBANKTOFUTUREBYFUTURE 90
#define ONRTNFROMFUTURETOBANKBYFUTURE 91
#define ONRTNREPEALFROMBANKTOFUTUREBYFUTUREMANUAL 92
#define ONRTNREPEALFROMFUTURETOBANKBYFUTUREMANUAL 93
#define ONRTNQUERYBANKBALANCEBYFUTURE 94
#define ONERRRTNBANKTOFUTUREBYFUTURE 95
#define ONERRRTNFUTURETOBANKBYFUTURE 96
#define ONERRRTNREPEALBANKTOFUTUREBYFUTUREMANUAL 97
#define ONERRRTNREPEALFUTURETOBANKBYFUTUREMANUAL 98
#define ONERRRTNQUERYBANKBALANCEBYFUTURE 99
#define ONRTNREPEALFROMBANKTOFUTUREBYFUTURE 100
#define ONRTNREPEALFROMFUTURETOBANKBYFUTURE 101
#define ONRSPFROMBANKTOFUTUREBYFUTURE 102
#define ONRSPFROMFUTURETOBANKBYFUTURE 103
#define ONRSPQUERYBANKACCOUNTMONEYBYFUTURE 104
#define ONRTNOPENACCOUNTBYBANK 105
#define ONRTNCANCELACCOUNTBYBANK 106
#define ONRTNCHANGEACCOUNTBYBANK 107
#define ONRSPQRYDEFERFEERATE 108
#define ONRTNDEFERFEERATE 109
#define ONRSPQRYDEFERMIDTRADE 110
#define ONRTNDEFERMIDTRADE 111
#define ONRTNPOSITIONNETTING 112
